FROM youmoni/jdk11

ENV LANG en_US.UTF-8

RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories

RUN apk --no-cache add tzdata zeromq ca-certificates \
    && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
    && echo '$TZ' > /etc/timezone


RUN apk add --update ttf-dejavu fontconfig && rm -rf /var/cache/apk/*

WORKDIR /app

#ENTRYPOINT ["java","-jar","app.jar"]

ENTRYPOINT ["java","--add-opens","java.base/java.lang=ALL-UNNAMED","-jar","app.jar"]